import React, { Component } from 'react'
import connect from './connect'

class Index extends Component {
  render() {
    const { count, addCount } = this.props
    return (
      <div>
        <h3>count:{count}</h3>
        <button
          onClick={() => {
            addCount(10)
          }}
        >
          ++count++
        </button>
      </div>
    )
  }
}

export default connect(Index)
